﻿using Games.Basic;
using Games.Common;
using Xamarin.Forms;

namespace Games.Horse64
{
    class GameInfo : BaseViewModel, IGameInfo
    {
        public string Name => "马踏棋盘";
        public string Desc => "马踏棋盘是一款自我挑战的休闲益智游戏，要求走过尽量多的国际象棋棋盘格子。" +
            "\r\n开局时马被随机放在国际象棋棋盘的某个格子中，按照国际象棋中马的走法，走过的格子不能重复进入。" +
            "\r\n结果等级：" +
            "\r\n\t天才:经过所有格子并回到起点" +
            "\r\n\t完美:经过所有格子" +
            "\r\n\t杰出:经过62格子" +
            "\r\n\t优秀:经过58格子" +
            "\r\n\r\n双击空白区域撤销一步。";
        public string Version => "1.1";
        public string ID => "1B46545F-E9B3-496A-B9ED-12701E146DC8";
        public string BuildDate => "20200629";
        public ContentPage NewPage() => PageHolder.Get(() => new Horse64Page(this));

        int stepCount = 0;
        public int StepCount
        {
            get { return stepCount; }
            set { SetProperty(ref stepCount, value); }
        }
    }
}